﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="reviewdetail.aspx.vb" Inherits="task3.reviewdetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:ListView ID="ListView1" runat="server" 
        DataSourceID="AccessDataSource1"  >
        <EmptyDataTemplate>
            <span>No requests available.</span>
        </EmptyDataTemplate>
        
        <ItemTemplate>
        
        <h2><%# Eval("Title") %>
        </h2>
            <asp:Label ID="RequestedbyLabel" runat="server" 
                Text='<%# Eval("postedby") %>' />
            &nbsp;
            Posted Date:
            <asp:Label ID="PosteddateLabel" runat="server" 
                Text='<%# Eval("Posteddate") %>' />
                <br /><br />
            <asp:Label ID="DescriptionLabel" runat="server" 
                Text='<%# Eval("content") %>' />
            <br />
            <br />
        </ItemTemplate>
    </asp:ListView>
    <p>
        <a href="reviewlist.aspx">Go back to All Reviews</a></p>
    <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
        DataFile="~/App_Data/DealsDb.accdb" 
        
        SelectCommand="SELECT * FROM [Review] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="1" Name="ID" QueryStringField="ID" 
                Type="Int32" />
        </SelectParameters>
    </asp:AccessDataSource>

</asp:Content>
